package _interface

import "fmt"

type Phone interface {
	call()
}
type IPhone struct {
}

func (c IPhone) call() {
	fmt.Println("i am iphone")
}

type Android struct {
}

func (a Android) call() {
	fmt.Println("i am android")
}

func TestInterface() {
	var phone Phone
	phone = new(IPhone)
	phone.call()
	phone = new(Android)
	phone.call()
}
